import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import index from '@/components/index'
import student from '@/components/student'
import exampaperList from '@/components/exampaperList'
import onexam from '@/components/onexam'
import onsample from '@/components/onsample'
import question from '@/components/question'
import scoreManagerment from '@/components/scoreManagerment'

Vue.use(Router)

export default new Router({
  mode:"history",
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      children:[
        {
          path:'student',
          name:'student',
          component:student
        },
        {
          path:'exampaper',
          name:"exampaper",
          component:exampaperList
        },

        {
          path:"onexam",
          name:"onexam",
          component:onexam
        },
        {
          path:"onsample",
          name:"onsample",
          component:onsample
        },
        {
          path:"question",
          name:"question",
          component:question
        },
        {
          path:'scoreManagerment',
          name:'scoreManagerment',
          component:scoreManagerment
        }
      ]
    }
  ]
})
